<?php

/**
 * Description of membership_model
 *
 * @author iLyas
 */
class Membership_model extends CI_Model{
    
    function validate(){
        
        $this->db->where('user_pseudo', $this->input->post('username'));
        $this->db->where('user_password', md5($this->input->post('password')));
        $q = $this->db->get('user');
        
        if ($q->num_rows == 1){
            return true;
        }
    }
}

?>
